<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>ProvCon.dbui.database</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="ProvCon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >docsis-provisioning</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="ProvCon-module.html">Package&nbsp;ProvCon</a> ::
        <a href="ProvCon.dbui-module.html">Package&nbsp;dbui</a> ::
        Module&nbsp;database
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="ProvCon.dbui.database-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="ProvCon.dbui.database-module.html">Module ProvCon.dbui.database</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">contextlib</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">cStringIO</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">pg</tt><tt class="py-op">,</tt> <tt class="py-name">re</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">exceptions</tt> </tt>
<a name="CFG"></a><div id="CFG-def"><a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt> <a class="py-toggle" href="#" id="CFG-toggle" onclick="return toggle('CFG');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="ProvCon.dbui.database.CFG-class.html">CFG</a><tt class="py-op">:</tt> </tt>
</div><div id="CFG-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="CFG-expanded"><a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line">    <tt class="py-docstring">"""</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-docstring">    Static class containing application settings.</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="CFG.DB"></a><div id="CFG.DB-def"><a name="L10"></a><tt class="py-lineno"> 10</tt> <a class="py-toggle" href="#" id="CFG.DB-toggle" onclick="return toggle('CFG.DB');">-</a><tt class="py-line">    <tt class="py-keyword">class</tt> <a class="py-def-name" href="ProvCon.dbui.database.CFG.DB-class.html">DB</a><tt class="py-op">:</tt> </tt>
</div><div id="CFG.DB-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CFG.DB-expanded"><a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-docstring">        Database back-end connection settings.</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line">        <tt class="py-decorator">@</tt><tt class="py-decorator">classmethod</tt> </tt>
<a name="CFG.DB.initialize"></a><div id="CFG.DB.initialize-def"><a name="L15"></a><tt class="py-lineno"> 15</tt> <a class="py-toggle" href="#" id="CFG.DB.initialize-toggle" onclick="return toggle('CFG.DB.initialize');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="ProvCon.dbui.database.CFG.DB-class.html#initialize">initialize</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="CFG.DB.initialize-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="CFG.DB.initialize-expanded"><a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-0" class="py-name" targets="Variable ProvCon.dbui.database.CFG.DB.__is_initialized=ProvCon.dbui.database.CFG.DB-class.html#__is_initialized"><a title="ProvCon.dbui.database.CFG.DB.__is_initialized" class="py-name" href="#" onclick="return doclink('link-0', '__is_initialized', 'link-0');">__is_initialized</a></tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line">            <tt class="py-keyword">from</tt> <tt id="link-1" class="py-name" targets="Module ProvCon.dbui.config=ProvCon.dbui.config-module.html,Variable ProvCon.dbui.config.config=ProvCon.dbui.config-module.html#config,Module ProvCon.docsis.compiler.config=ProvCon.docsis.compiler.config-module.html,Class ProvCon.docsis.compiler.config.config=ProvCon.docsis.compiler.config.config-class.html"><a title="ProvCon.dbui.config
ProvCon.dbui.config.config
ProvCon.docsis.compiler.config
ProvCon.docsis.compiler.config.config" class="py-name" href="#" onclick="return doclink('link-1', 'config', 'link-1');">config</a></tt> <tt class="py-keyword">import</tt> <tt id="link-2" class="py-name"><a title="ProvCon.dbui.config
ProvCon.dbui.config.config
ProvCon.docsis.compiler.config
ProvCon.docsis.compiler.config.config" class="py-name" href="#" onclick="return doclink('link-2', 'config', 'link-1');">config</a></tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line">            <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Variable ProvCon.dbui.database.CFG.DB.HOST=ProvCon.dbui.database.CFG.DB-class.html#HOST"><a title="ProvCon.dbui.database.CFG.DB.HOST" class="py-name" href="#" onclick="return doclink('link-3', 'HOST', 'link-3');">HOST</a></tt> <tt class="py-op">=</tt> <tt id="link-4" class="py-name"><a title="ProvCon.dbui.config
ProvCon.dbui.config.config
ProvCon.docsis.compiler.config
ProvCon.docsis.compiler.config.config" class="py-name" href="#" onclick="return doclink('link-4', 'config', 'link-1');">config</a></tt><tt class="py-op">.</tt><tt id="link-5" class="py-name" targets="Method ProvCon.dbui.orm.recordsearch.OIDSearchList.get()=ProvCon.dbui.orm.recordsearch.OIDSearchList-class.html#get,Method ProvCon.func.variables.TracedVariable.get()=ProvCon.func.variables.TracedVariable-class.html#get"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-5', 'get', 'link-5');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">"DATABASE"</tt><tt class="py-op">,</tt> <tt class="py-string">"host"</tt> <tt class="py-op">)</tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line">            <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Variable ProvCon.dbui.database.CFG.DB.PORT=ProvCon.dbui.database.CFG.DB-class.html#PORT"><a title="ProvCon.dbui.database.CFG.DB.PORT" class="py-name" href="#" onclick="return doclink('link-6', 'PORT', 'link-6');">PORT</a></tt> <tt class="py-op">=</tt> <tt id="link-7" class="py-name"><a title="ProvCon.dbui.config
ProvCon.dbui.config.config
ProvCon.docsis.compiler.config
ProvCon.docsis.compiler.config.config" class="py-name" href="#" onclick="return doclink('link-7', 'config', 'link-1');">config</a></tt><tt class="py-op">.</tt><tt id="link-8" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-8', 'get', 'link-5');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">"DATABASE"</tt><tt class="py-op">,</tt> <tt class="py-string">"port"</tt> <tt class="py-op">)</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line">            <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-9" class="py-name" targets="Variable ProvCon.dbui.database.CFG.DB.DBNAME=ProvCon.dbui.database.CFG.DB-class.html#DBNAME"><a title="ProvCon.dbui.database.CFG.DB.DBNAME" class="py-name" href="#" onclick="return doclink('link-9', 'DBNAME', 'link-9');">DBNAME</a></tt> <tt class="py-op">=</tt> <tt id="link-10" class="py-name"><a title="ProvCon.dbui.config
ProvCon.dbui.config.config
ProvCon.docsis.compiler.config
ProvCon.docsis.compiler.config.config" class="py-name" href="#" onclick="return doclink('link-10', 'config', 'link-1');">config</a></tt><tt class="py-op">.</tt><tt id="link-11" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-11', 'get', 'link-5');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">"DATABASE"</tt><tt class="py-op">,</tt> <tt class="py-string">"dbname"</tt> <tt class="py-op">)</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line">            <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-12" class="py-name" targets="Variable ProvCon.dbui.database.CFG.DB.ROLE=ProvCon.dbui.database.CFG.DB-class.html#ROLE"><a title="ProvCon.dbui.database.CFG.DB.ROLE" class="py-name" href="#" onclick="return doclink('link-12', 'ROLE', 'link-12');">ROLE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line">            <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name" targets="Variable ProvCon.dbui.database.CFG.DB.PASS=ProvCon.dbui.database.CFG.DB-class.html#PASS"><a title="ProvCon.dbui.database.CFG.DB.PASS" class="py-name" href="#" onclick="return doclink('link-13', 'PASS', 'link-13');">PASS</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line">            <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name" targets="Variable ProvCon.dbui.database.CFG.DB.SCHEMA=ProvCon.dbui.database.CFG.DB-class.html#SCHEMA"><a title="ProvCon.dbui.database.CFG.DB.SCHEMA" class="py-name" href="#" onclick="return doclink('link-14', 'SCHEMA', 'link-14');">SCHEMA</a></tt> <tt class="py-op">=</tt> <tt id="link-15" class="py-name"><a title="ProvCon.dbui.config
ProvCon.dbui.config.config
ProvCon.docsis.compiler.config
ProvCon.docsis.compiler.config.config" class="py-name" href="#" onclick="return doclink('link-15', 'config', 'link-1');">config</a></tt><tt class="py-op">.</tt><tt id="link-16" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-16', 'get', 'link-5');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">"DATABASE"</tt><tt class="py-op">,</tt> <tt class="py-string">"schema"</tt> <tt class="py-op">)</tt>         </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line">            <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-17" class="py-name"><a title="ProvCon.dbui.database.CFG.DB.__is_initialized" class="py-name" href="#" onclick="return doclink('link-17', '__is_initialized', 'link-0');">__is_initialized</a></tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
</div><a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line">             </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line">        <tt id="link-18" class="py-name"><a title="ProvCon.dbui.database.CFG.DB.HOST" class="py-name" href="#" onclick="return doclink('link-18', 'HOST', 'link-3');">HOST</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line">        <tt id="link-19" class="py-name"><a title="ProvCon.dbui.database.CFG.DB.PORT" class="py-name" href="#" onclick="return doclink('link-19', 'PORT', 'link-6');">PORT</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line">        <tt id="link-20" class="py-name"><a title="ProvCon.dbui.database.CFG.DB.DBNAME" class="py-name" href="#" onclick="return doclink('link-20', 'DBNAME', 'link-9');">DBNAME</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line">        <tt id="link-21" class="py-name"><a title="ProvCon.dbui.database.CFG.DB.ROLE" class="py-name" href="#" onclick="return doclink('link-21', 'ROLE', 'link-12');">ROLE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line">        <tt id="link-22" class="py-name"><a title="ProvCon.dbui.database.CFG.DB.PASS" class="py-name" href="#" onclick="return doclink('link-22', 'PASS', 'link-13');">PASS</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">        <tt id="link-23" class="py-name"><a title="ProvCon.dbui.database.CFG.DB.SCHEMA" class="py-name" href="#" onclick="return doclink('link-23', 'SCHEMA', 'link-14');">SCHEMA</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line">        <tt id="link-24" class="py-name"><a title="ProvCon.dbui.database.CFG.DB.__is_initialized" class="py-name" href="#" onclick="return doclink('link-24', '__is_initialized', 'link-0');">__is_initialized</a></tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
</div><a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">         </tt>
<a name="CFG.RT"></a><div id="CFG.RT-def"><a name="L34"></a><tt class="py-lineno"> 34</tt> <a class="py-toggle" href="#" id="CFG.RT-toggle" onclick="return toggle('CFG.RT');">-</a><tt class="py-line">    <tt class="py-keyword">class</tt> <a class="py-def-name" href="ProvCon.dbui.database.CFG.RT-class.html">RT</a><tt class="py-op">:</tt> </tt>
</div><div id="CFG.RT-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CFG.RT-expanded"><a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">        <tt class="py-decorator">@</tt><tt class="py-decorator">classmethod</tt> </tt>
<a name="CFG.RT.initialize"></a><div id="CFG.RT.initialize-def"><a name="L36"></a><tt class="py-lineno"> 36</tt> <a class="py-toggle" href="#" id="CFG.RT.initialize-toggle" onclick="return toggle('CFG.RT.initialize');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="ProvCon.dbui.database.CFG.RT-class.html#initialize">initialize</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="CFG.RT.initialize-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="CFG.RT.initialize-expanded"><a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">            <tt class="py-keyword">from</tt> <tt id="link-25" class="py-name"><a title="ProvCon.dbui.config
ProvCon.dbui.config.config
ProvCon.docsis.compiler.config
ProvCon.docsis.compiler.config.config" class="py-name" href="#" onclick="return doclink('link-25', 'config', 'link-1');">config</a></tt> <tt class="py-keyword">import</tt> <tt id="link-26" class="py-name"><a title="ProvCon.dbui.config
ProvCon.dbui.config.config
ProvCon.docsis.compiler.config
ProvCon.docsis.compiler.config.config" class="py-name" href="#" onclick="return doclink('link-26', 'config', 'link-1');">config</a></tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">            <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name" targets="Variable ProvCon.dbui.database.CFG.RT.DATASCOPE=ProvCon.dbui.database.CFG.RT-class.html#DATASCOPE"><a title="ProvCon.dbui.database.CFG.RT.DATASCOPE" class="py-name" href="#" onclick="return doclink('link-27', 'DATASCOPE', 'link-27');">DATASCOPE</a></tt> <tt class="py-op">=</tt> <tt id="link-28" class="py-name"><a title="ProvCon.dbui.config
ProvCon.dbui.config.config
ProvCon.docsis.compiler.config
ProvCon.docsis.compiler.config.config" class="py-name" href="#" onclick="return doclink('link-28', 'config', 'link-1');">config</a></tt><tt class="py-op">.</tt><tt id="link-29" class="py-name"><a title="ProvCon.dbui.orm.recordsearch.OIDSearchList.get
ProvCon.func.variables.TracedVariable.get" class="py-name" href="#" onclick="return doclink('link-29', 'get', 'link-5');">get</a></tt> <tt class="py-op">(</tt> <tt class="py-string">"DATABASE"</tt><tt class="py-op">,</tt> <tt class="py-string">"scope"</tt> <tt class="py-op">)</tt> </tt>
</div><a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">        <tt id="link-30" class="py-name"><a title="ProvCon.dbui.database.CFG.RT.DATASCOPE" class="py-name" href="#" onclick="return doclink('link-30', 'DATASCOPE', 'link-27');">DATASCOPE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">         </tt>
<a name="CFG.tCX"></a><div id="CFG.tCX-def"><a name="L41"></a><tt class="py-lineno"> 41</tt> <a class="py-toggle" href="#" id="CFG.tCX-toggle" onclick="return toggle('CFG.tCX');">-</a><tt class="py-line">    <tt class="py-keyword">class</tt> <a class="py-def-name" href="ProvCon.dbui.database.CFG.tCX-class.html">tCX</a><tt class="py-op">(</tt><tt class="py-base-class">pg</tt><tt class="py-op">.</tt><tt class="py-base-class">DB</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>         </tt>
</div><a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">        <tt class="py-docstring">"""    </tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line"><tt class="py-docstring">        Besides being a PostgreSQL connection object, this class builds the ER</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line"><tt class="py-docstring">        structures used by forms, records, reference editors etc.</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line"><tt class="py-docstring">        Ideally it should only be instatiated once, the constructor attempts to</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line"><tt class="py-docstring">        ensure that it is so. The CFG.CX static variable should hold an active</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line"><tt class="py-docstring">        connection at all times.        </tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">        <tt id="link-31" class="py-name" targets="Variable ProvCon.dbui.database.CFG.tCX.instanceCount=ProvCon.dbui.database.CFG.tCX-class.html#instanceCount"><a title="ProvCon.dbui.database.CFG.tCX.instanceCount" class="py-name" href="#" onclick="return doclink('link-31', 'instanceCount', 'link-31');">instanceCount</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">        <tt id="link-32" class="py-name" targets="Variable ProvCon.dbui.database.CFG.tCX.instance=ProvCon.dbui.database.CFG.tCX-class.html#instance"><a title="ProvCon.dbui.database.CFG.tCX.instance" class="py-name" href="#" onclick="return doclink('link-32', 'instance', 'link-32');">instance</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">        <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
<a name="CFG.tCX.reconnect"></a><div id="CFG.tCX.reconnect-def"><a name="L53"></a><tt class="py-lineno"> 53</tt> <a class="py-toggle" href="#" id="CFG.tCX.reconnect-toggle" onclick="return toggle('CFG.tCX.reconnect');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="ProvCon.dbui.database.CFG.tCX-class.html#reconnect">reconnect</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="CFG.tCX.reconnect-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="CFG.tCX.reconnect-expanded"><a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">            <tt id="link-33" class="py-name" targets="Class ProvCon.dbui.database.CFG=ProvCon.dbui.database.CFG-class.html"><a title="ProvCon.dbui.database.CFG" class="py-name" href="#" onclick="return doclink('link-33', 'CFG', 'link-33');">CFG</a></tt><tt class="py-op">.</tt><tt id="link-34" class="py-name" targets="Variable ProvCon.dbui.database.CFG.tCX.CX=ProvCon.dbui.database.CFG.tCX-class.html#CX"><a title="ProvCon.dbui.database.CFG.tCX.CX" class="py-name" href="#" onclick="return doclink('link-34', 'CX', 'link-34');">CX</a></tt> <tt class="py-op">=</tt> <tt id="link-35" class="py-name"><a title="ProvCon.dbui.database.CFG" class="py-name" href="#" onclick="return doclink('link-35', 'CFG', 'link-33');">CFG</a></tt><tt class="py-op">.</tt><tt id="link-36" class="py-name" targets="Class ProvCon.dbui.database.CFG.tCX=ProvCon.dbui.database.CFG.tCX-class.html"><a title="ProvCon.dbui.database.CFG.tCX" class="py-name" href="#" onclick="return doclink('link-36', 'tCX', 'link-36');">tCX</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">             </tt>
<a name="CFG.tCX.__init__"></a><div id="CFG.tCX.__init__-def"><a name="L56"></a><tt class="py-lineno"> 56</tt> <a class="py-toggle" href="#" id="CFG.tCX.__init__-toggle" onclick="return toggle('CFG.tCX.__init__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="ProvCon.dbui.database.CFG.tCX-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="CFG.tCX.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="CFG.tCX.__init__-expanded"><a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">            <tt class="py-keyword">from</tt> <tt id="link-37" class="py-name" targets="Package ProvCon.dbui.meta=ProvCon.dbui.meta-module.html"><a title="ProvCon.dbui.meta" class="py-name" href="#" onclick="return doclink('link-37', 'meta', 'link-37');">meta</a></tt> <tt class="py-keyword">import</tt> <tt id="link-38" class="py-name" targets="Class ProvCon.dbui.meta.table.Table=ProvCon.dbui.meta.table.Table-class.html"><a title="ProvCon.dbui.meta.table.Table" class="py-name" href="#" onclick="return doclink('link-38', 'Table', 'link-38');">Table</a></tt><tt class="py-op">,</tt> <tt id="link-39" class="py-name" targets="Class ProvCon.dbui.meta.field.Field=ProvCon.dbui.meta.field.Field-class.html"><a title="ProvCon.dbui.meta.field.Field" class="py-name" href="#" onclick="return doclink('link-39', 'Field', 'link-39');">Field</a></tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">            <tt class="py-name">pg</tt><tt class="py-op">.</tt><tt id="link-40" class="py-name" targets="Class ProvCon.dbui.database.CFG.DB=ProvCon.dbui.database.CFG.DB-class.html"><a title="ProvCon.dbui.database.CFG.DB" class="py-name" href="#" onclick="return doclink('link-40', 'DB', 'link-40');">DB</a></tt><tt class="py-op">.</tt><tt id="link-41" class="py-name" targets="Method ProvCon.TFTP.Protocol.Packet.__init__()=ProvCon.TFTP.Protocol.Packet-class.html#__init__,Method ProvCon.TFTP.ProvisioningTFTP.BaseOven.__init__()=ProvCon.TFTP.ProvisioningTFTP.BaseOven-class.html#__init__,Method ProvCon.TFTP.ProvisioningTFTP.CableModemConfigCook.__init__()=ProvCon.TFTP.ProvisioningTFTP.CableModemConfigCook-class.html#__init__,Method ProvCon.TFTP.ProvisioningTFTP.FileCook.__init__()=ProvCon.TFTP.ProvisioningTFTP.FileCook-class.html#__init__,Method ProvCon.TFTP.ProvisioningTFTP.ProvisioningTFTPServer.__init__()=ProvCon.TFTP.ProvisioningTFTP.ProvisioningTFTPServer-class.html#__init__,Method ProvCon.TFTP.ProvisioningTFTP.TFTPDataSender.__init__()=ProvCon.TFTP.ProvisioningTFTP.TFTPDataSender-class.html#__init__,Method ProvCon.TFTP.ProvisioningTFTP.pcTFTPD.__init__()=ProvCon.TFTP.ProvisioningTFTP.pcTFTPD-class.html#__init__,Method ProvCon.TFTP.Server.BaseTFTPServer.__init__()=ProvCon.TFTP.Server.BaseTFTPServer-class.html#__init__,Method ProvCon.cli.CLIServer.__init__()=ProvCon.cli.CLIServer-class.html#__init__,Method ProvCon.cli.CLIWorker.__init__()=ProvCon.cli.CLIWorker-class.html#__init__,Method ProvCon.dbui.abstractui.fields.BaseArrayEditor.__init__()=ProvCon.dbui.abstractui.fields.BaseArrayEditor-class.html#__init__,Method ProvCon.dbui.abstractui.fields.BaseArrayItemButtonBox.__init__()=ProvCon.dbui.abstractui.fields.BaseArrayItemButtonBox-class.html#__init__,Method ProvCon.dbui.abstractui.fields.BaseArrayItemEditor.__init__()=ProvCon.dbui.abstractui.fields.BaseArrayItemEditor-class.html#__init__,Method ProvCon.dbui.abstractui.fields.BaseFieldEditor.__init__()=ProvCon.dbui.abstractui.fields.BaseFieldEditor-class.html#__init__,Method ProvCon.dbui.abstractui.fields.BaseReferenceEditor.__init__()=ProvCon.dbui.abstractui.fields.BaseReferenceEditor-class.html#__init__,Method ProvCon.dbui.abstractui.forms.BaseForm.__init__()=ProvCon.dbui.abstractui.forms.BaseForm-class.html#__init__,Method ProvCon.dbui.abstractui.navigators.BaseNavigator.__init__()=ProvCon.dbui.abstractui.navigators.BaseNavigator-class.html#__init__,Method ProvCon.dbui.abstractui.recordlists.BasePager.__init__()=ProvCon.dbui.abstractui.recordlists.BasePager-class.html#__init__,Method ProvCon.dbui.abstractui.recordlists.BaseRecordList.__init__()=ProvCon.dbui.abstractui.recordlists.BaseRecordList-class.html#__init__,Method ProvCon.dbui.database.CFG.tCX.__init__()=ProvCon.dbui.database.CFG.tCX-class.html#__init__,Method ProvCon.dbui.di.rObject'.ObjectFlags.__init__()=ProvCon.dbui.di.rObject%27.ObjectFlags-class.html#__init__,Method ProvCon.dbui.di.rObject'.ObjectParams.__init__()=ProvCon.dbui.di.rObject%27.ObjectParams-class.html#__init__,Method ProvCon.dbui.di.rObject'.rObject.__init__()=ProvCon.dbui.di.rObject%27.rObject-class.html#__init__,Method ProvCon.dbui.meta.field.Field.__init__()=ProvCon.dbui.meta.field.Field-class.html#__init__,Method ProvCon.dbui.meta.table.Table.__init__()=ProvCon.dbui.meta.table.Table-class.html#__init__,Method ProvCon.dbui.orm.form.Form.__init__()=ProvCon.dbui.orm.form.Form-class.html#__init__,Method ProvCon.dbui.orm.record.Record.DataManipulationError.__init__()=ProvCon.dbui.orm.record.Record.DataManipulationError-class.html#__init__,Method ProvCon.dbui.orm.record.Record.DataQueryError.__init__()=ProvCon.dbui.orm.record.Record.DataQueryError-class.html#__init__,Method ProvCon.dbui.orm.record.Record.RecordNotFound.__init__()=ProvCon.dbui.orm.record.Record.RecordNotFound-class.html#__init__,Method ProvCon.dbui.orm.record.Record.__init__()=ProvCon.dbui.orm.record.Record-class.html#__init__,Method ProvCon.dbui.orm.recordlist.RecordList.__init__()=ProvCon.dbui.orm.recordlist.RecordList-class.html#__init__,Method ProvCon.dbui.orm.recordsearch.OIDSearchList.__init__()=ProvCon.dbui.orm.recordsearch.OIDSearchList-class.html#__init__,Method ProvCon.dbui.wxwin.complete.CompleteGenericForm.__init__()=ProvCon.dbui.wxwin.complete.CompleteGenericForm-class.html#__init__,Method ProvCon.dbui.wxwin.complete.FormToolbar.__init__()=ProvCon.dbui.wxwin.complete.FormToolbar-class.html#__init__,Method ProvCon.dbui.wxwin.complete.InfoPopup.__init__()=ProvCon.dbui.wxwin.complete.InfoPopup-class.html#__init__,Method ProvCon.dbui.wxwin.fields.Entry.ArrayCombo.__init__()=ProvCon.dbui.wxwin.fields.Entry.ArrayCombo-class.html#__init__,Method ProvCon.dbui.wxwin.fields.Entry.ArrayItemCombo.__init__()=ProvCon.dbui.wxwin.fields.Entry.ArrayItemCombo-class.html#__init__,Method ProvCon.dbui.wxwin.fields.Entry.ArrayItemStatic.__init__()=ProvCon.dbui.wxwin.fields.Entry.ArrayItemStatic-class.html#__init__,Method ProvCon.dbui.wxwin.fields.Entry.ArrayItemText.__init__()=ProvCon.dbui.wxwin.fields.Entry.ArrayItemText-class.html#__init__,Method ProvCon.dbui.wxwin.fields.Entry.ArrayText.__init__()=ProvCon.dbui.wxwin.fields.Entry.ArrayText-class.html#__init__,Method ProvCon.dbui.wxwin.fields.Entry.BaseArray.__init__()=ProvCon.dbui.wxwin.fields.Entry.BaseArray-class.html#__init__,Method ProvCon.dbui.wxwin.fields.Entry.Boolean.__init__()=ProvCon.dbui.wxwin.fields.Entry.Boolean-class.html#__init__,Method ProvCon.dbui.wxwin.fields.Entry.ComboReference.__init__()=ProvCon.dbui.wxwin.fields.Entry.ComboReference-class.html#__init__,Method ProvCon.dbui.wxwin.fields.Entry.Memo.__init__()=ProvCon.dbui.wxwin.fields.Entry.Memo-class.html#__init__,Method ProvCon.dbui.wxwin.fields.Entry.StandardArrayItemButtonBox.__init__()=ProvCon.dbui.wxwin.fields.Entry.StandardArrayItemButtonBox-class.html#__init__,Method ProvCon.dbui.wxwin.fields.Entry.Static.__init__()=ProvCon.dbui.wxwin.fields.Entry.Static-class.html#__init__,Method ProvCon.dbui.wxwin.fields.Entry.StaticReference.__init__()=ProvCon.dbui.wxwin.fields.Entry.StaticReference-class.html#__init__,Method ProvCon.dbui.wxwin.fields.Entry.Text.__init__()=ProvCon.dbui.wxwin.fields.Entry.Text-class.html#__init__,Method ProvCon.dbui.wxwin.forms.GenericForm.__init__()=ProvCon.dbui.wxwin.forms.GenericForm-class.html#__init__,Method ProvCon.dbui.wxwin.mwx.CheckBox.__init__()=ProvCon.dbui.wxwin.mwx.CheckBox-class.html#__init__,Method ProvCon.dbui.wxwin.mwx.ComboBox.__init__()=ProvCon.dbui.wxwin.mwx.ComboBox-class.html#__init__,Method ProvCon.dbui.wxwin.mwx.StaticText.__init__()=ProvCon.dbui.wxwin.mwx.StaticText-class.html#__init__,Method ProvCon.dbui.wxwin.mwx.TextCtrl.__init__()=ProvCon.dbui.wxwin.mwx.TextCtrl-class.html#__init__,Method ProvCon.dbui.wxwin.mwx.mwxControl.__init__()=ProvCon.dbui.wxwin.mwx.mwxControl-class.html#__init__,Method ProvCon.dbui.wxwin.navigators.Navigator.__init__()=ProvCon.dbui.wxwin.navigators.Navigator-class.html#__init__,Method ProvCon.dbui.wxwin.recordlists.RecordList.__init__()=ProvCon.dbui.wxwin.recordlists.RecordList-class.html#__init__,Method ProvCon.docsis.cablemodem.cablemodem.__init__()=ProvCon.docsis.cablemodem.cablemodem-class.html#__init__,Method ProvCon.docsis.cablemodem.cablemodem._cos.__init__()=ProvCon.docsis.cablemodem.cablemodem._cos-class.html#__init__,Method ProvCon.docsis.cablemodem.cablemodem._cpe.__init__()=ProvCon.docsis.cablemodem.cablemodem._cpe-class.html#__init__,Method ProvCon.docsis.cablemodem.cablemodem._mac.__init__()=ProvCon.docsis.cablemodem.cablemodem._mac-class.html#__init__,Method ProvCon.docsis.compiler.config.config.__init__()=ProvCon.docsis.compiler.config.config-class.html#__init__,Method ProvCon.docsis.compiler.encoder.error.__init__()=ProvCon.docsis.compiler.encoder.error-class.html#__init__,Method ProvCon.docsis.compiler.encoder.tlv.__init__()=ProvCon.docsis.compiler.encoder.tlv-class.html#__init__,Method ProvCon.docsis.compiler.encoder.tlv_multipart.__init__()=ProvCon.docsis.compiler.encoder.tlv_multipart-class.html#__init__,Method ProvCon.docsis.compiler.encoder.tlv_multipart.append_proxy.__init__()=ProvCon.docsis.compiler.encoder.tlv_multipart.append_proxy-class.html#__init__,Method ProvCon.docsis.compiler.encoder.tlv_multipart.iterator.__init__()=ProvCon.docsis.compiler.encoder.tlv_multipart.iterator-class.html#__init__,Method ProvCon.docsis.compiler.encoder.tlv_multipart_subclass.__init__()=ProvCon.docsis.compiler.encoder.tlv_multipart_subclass-class.html#__init__,Method ProvCon.docsis.compiler.encoder.tlv_subclass.__init__()=ProvCon.docsis.compiler.encoder.tlv_subclass-class.html#__init__,Method ProvCon.func.classes.conditionalmethod.__init__()=ProvCon.func.classes.conditionalmethod-class.html#__init__,Method ProvCon.func.events.eventemitter.__init__()=ProvCon.func.events.eventemitter-class.html#__init__,Method ProvCon.func.events.eventemitter.evt.__init__()=ProvCon.func.events.eventemitter.evt-class.html#__init__,Method ProvCon.func.events.eventemitter.evthook.__init__()=ProvCon.func.events.eventemitter.evthook-class.html#__init__,Method ProvCon.func.events.eventexception.__init__()=ProvCon.func.events.eventexception-class.html#__init__,Method ProvCon.func.variables.TracedVariable.Tracer.__init__()=ProvCon.func.variables.TracedVariable.Tracer-class.html#__init__,Method ProvCon.func.variables.TracedVariable.__init__()=ProvCon.func.variables.TracedVariable-class.html#__init__,Method ProvCon.gui.FrontEndApp.FE.__init__()=ProvCon.gui.FrontEndApp.FE-class.html#__init__,Method ProvCon.gui.ProvisioningControl.GenericObjectEditor.__init__()=ProvCon.gui.ProvisioningControl.GenericObjectEditor-class.html#__init__,Method ProvCon.gui.ProvisioningControl.GridView.__init__()=ProvCon.gui.ProvisioningControl.GridView-class.html#__init__,Method ProvCon.gui.ProvisioningControl.MainTab.__init__()=ProvCon.gui.ProvisioningControl.MainTab-class.html#__init__,Method ProvCon.gui.ProvisioningControl.ObjectEditorModel.__init__()=ProvCon.gui.ProvisioningControl.ObjectEditorModel-class.html#__init__,Method ProvCon.gui.ProvisioningControl.TopLevelWindow.__init__()=ProvCon.gui.ProvisioningControl.TopLevelWindow-class.html#__init__,Method ProvCon.log.LoggingBackend.__init__()=ProvCon.log.LoggingBackend-class.html#__init__,Method ProvCon.log.LoggingClient.__init__()=ProvCon.log.LoggingClient-class.html#__init__,Method ProvCon.log.LoggingServer.__init__()=ProvCon.log.LoggingServer-class.html#__init__,Method ProvCon.ui.uierror.__init__()=ProvCon.ui.uierror-class.html#__init__,Method ProvCon.wronolib.ipaddr.ip4addr.__init__()=ProvCon.wronolib.ipaddr.ip4addr-class.html#__init__,Method ProvCon.wronolib.ipaddr.ip4prefix.__init__()=ProvCon.wronolib.ipaddr.ip4prefix-class.html#__init__"><a title="ProvCon.TFTP.Protocol.Packet.__init__
ProvCon.TFTP.ProvisioningTFTP.BaseOven.__init__
ProvCon.TFTP.ProvisioningTFTP.CableModemConfigCook.__init__
ProvCon.TFTP.ProvisioningTFTP.FileCook.__init__
ProvCon.TFTP.ProvisioningTFTP.ProvisioningTFTPServer.__init__
ProvCon.TFTP.ProvisioningTFTP.TFTPDataSender.__init__
ProvCon.TFTP.ProvisioningTFTP.pcTFTPD.__init__
ProvCon.TFTP.Server.BaseTFTPServer.__init__
ProvCon.cli.CLIServer.__init__
ProvCon.cli.CLIWorker.__init__
ProvCon.dbui.abstractui.fields.BaseArrayEditor.__init__
ProvCon.dbui.abstractui.fields.BaseArrayItemButtonBox.__init__
ProvCon.dbui.abstractui.fields.BaseArrayItemEditor.__init__
ProvCon.dbui.abstractui.fields.BaseFieldEditor.__init__
ProvCon.dbui.abstractui.fields.BaseReferenceEditor.__init__
ProvCon.dbui.abstractui.forms.BaseForm.__init__
ProvCon.dbui.abstractui.navigators.BaseNavigator.__init__
ProvCon.dbui.abstractui.recordlists.BasePager.__init__
ProvCon.dbui.abstractui.recordlists.BaseRecordList.__init__
ProvCon.dbui.database.CFG.tCX.__init__
ProvCon.dbui.di.rObject'.ObjectFlags.__init__
ProvCon.dbui.di.rObject'.ObjectParams.__init__
ProvCon.dbui.di.rObject'.rObject.__init__
ProvCon.dbui.meta.field.Field.__init__
ProvCon.dbui.meta.table.Table.__init__
ProvCon.dbui.orm.form.Form.__init__
ProvCon.dbui.orm.record.Record.DataManipulationError.__init__
ProvCon.dbui.orm.record.Record.DataQueryError.__init__
ProvCon.dbui.orm.record.Record.RecordNotFound.__init__
ProvCon.dbui.orm.record.Record.__init__
ProvCon.dbui.orm.recordlist.RecordList.__init__
ProvCon.dbui.orm.recordsearch.OIDSearchList.__init__
ProvCon.dbui.wxwin.complete.CompleteGenericForm.__init__
ProvCon.dbui.wxwin.complete.FormToolbar.__init__
ProvCon.dbui.wxwin.complete.InfoPopup.__init__
ProvCon.dbui.wxwin.fields.Entry.ArrayCombo.__init__
ProvCon.dbui.wxwin.fields.Entry.ArrayItemCombo.__init__
ProvCon.dbui.wxwin.fields.Entry.ArrayItemStatic.__init__
ProvCon.dbui.wxwin.fields.Entry.ArrayItemText.__init__
ProvCon.dbui.wxwin.fields.Entry.ArrayText.__init__
ProvCon.dbui.wxwin.fields.Entry.BaseArray.__init__
ProvCon.dbui.wxwin.fields.Entry.Boolean.__init__
ProvCon.dbui.wxwin.fields.Entry.ComboReference.__init__
ProvCon.dbui.wxwin.fields.Entry.Memo.__init__
ProvCon.dbui.wxwin.fields.Entry.StandardArrayItemButtonBox.__init__
ProvCon.dbui.wxwin.fields.Entry.Static.__init__
ProvCon.dbui.wxwin.fields.Entry.StaticReference.__init__
ProvCon.dbui.wxwin.fields.Entry.Text.__init__
ProvCon.dbui.wxwin.forms.GenericForm.__init__
ProvCon.dbui.wxwin.mwx.CheckBox.__init__
ProvCon.dbui.wxwin.mwx.ComboBox.__init__
ProvCon.dbui.wxwin.mwx.StaticText.__init__
ProvCon.dbui.wxwin.mwx.TextCtrl.__init__
ProvCon.dbui.wxwin.mwx.mwxControl.__init__
ProvCon.dbui.wxwin.navigators.Navigator.__init__
ProvCon.dbui.wxwin.recordlists.RecordList.__init__
ProvCon.docsis.cablemodem.cablemodem.__init__
ProvCon.docsis.cablemodem.cablemodem._cos.__init__
ProvCon.docsis.cablemodem.cablemodem._cpe.__init__
ProvCon.docsis.cablemodem.cablemodem._mac.__init__
ProvCon.docsis.compiler.config.config.__init__
ProvCon.docsis.compiler.encoder.error.__init__
ProvCon.docsis.compiler.encoder.tlv.__init__
ProvCon.docsis.compiler.encoder.tlv_multipart.__init__
ProvCon.docsis.compiler.encoder.tlv_multipart.append_proxy.__init__
ProvCon.docsis.compiler.encoder.tlv_multipart.iterator.__init__
ProvCon.docsis.compiler.encoder.tlv_multipart_subclass.__init__
ProvCon.docsis.compiler.encoder.tlv_subclass.__init__
ProvCon.func.classes.conditionalmethod.__init__
ProvCon.func.events.eventemitter.__init__
ProvCon.func.events.eventemitter.evt.__init__
ProvCon.func.events.eventemitter.evthook.__init__
ProvCon.func.events.eventexception.__init__
ProvCon.func.variables.TracedVariable.Tracer.__init__
ProvCon.func.variables.TracedVariable.__init__
ProvCon.gui.FrontEndApp.FE.__init__
ProvCon.gui.ProvisioningControl.GenericObjectEditor.__init__
ProvCon.gui.ProvisioningControl.GridView.__init__
ProvCon.gui.ProvisioningControl.MainTab.__init__
ProvCon.gui.ProvisioningControl.ObjectEditorModel.__init__
ProvCon.gui.ProvisioningControl.TopLevelWindow.__init__
ProvCon.log.LoggingBackend.__init__
ProvCon.log.LoggingClient.__init__
ProvCon.log.LoggingServer.__init__
ProvCon.ui.uierror.__init__
ProvCon.wronolib.ipaddr.ip4addr.__init__
ProvCon.wronolib.ipaddr.ip4prefix.__init__" class="py-name" href="#" onclick="return doclink('link-41', '__init__', 'link-41');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">dbname</tt><tt class="py-op">=</tt><tt id="link-42" class="py-name"><a title="ProvCon.dbui.database.CFG" class="py-name" href="#" onclick="return doclink('link-42', 'CFG', 'link-33');">CFG</a></tt><tt class="py-op">.</tt><tt id="link-43" class="py-name"><a title="ProvCon.dbui.database.CFG.DB" class="py-name" href="#" onclick="return doclink('link-43', 'DB', 'link-40');">DB</a></tt><tt class="py-op">.</tt><tt id="link-44" class="py-name"><a title="ProvCon.dbui.database.CFG.DB.DBNAME" class="py-name" href="#" onclick="return doclink('link-44', 'DBNAME', 'link-9');">DBNAME</a></tt><tt class="py-op">,</tt> <tt class="py-name">user</tt><tt class="py-op">=</tt><tt id="link-45" class="py-name"><a title="ProvCon.dbui.database.CFG" class="py-name" href="#" onclick="return doclink('link-45', 'CFG', 'link-33');">CFG</a></tt><tt class="py-op">.</tt><tt id="link-46" class="py-name"><a title="ProvCon.dbui.database.CFG.DB" class="py-name" href="#" onclick="return doclink('link-46', 'DB', 'link-40');">DB</a></tt><tt class="py-op">.</tt><tt id="link-47" class="py-name"><a title="ProvCon.dbui.database.CFG.DB.ROLE" class="py-name" href="#" onclick="return doclink('link-47', 'ROLE', 'link-12');">ROLE</a></tt><tt class="py-op">,</tt> <tt class="py-name">host</tt><tt class="py-op">=</tt><tt id="link-48" class="py-name"><a title="ProvCon.dbui.database.CFG" class="py-name" href="#" onclick="return doclink('link-48', 'CFG', 'link-33');">CFG</a></tt><tt class="py-op">.</tt><tt id="link-49" class="py-name"><a title="ProvCon.dbui.database.CFG.DB" class="py-name" href="#" onclick="return doclink('link-49', 'DB', 'link-40');">DB</a></tt><tt class="py-op">.</tt><tt id="link-50" class="py-name"><a title="ProvCon.dbui.database.CFG.DB.HOST" class="py-name" href="#" onclick="return doclink('link-50', 'HOST', 'link-3');">HOST</a></tt><tt class="py-op">)</tt>             </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">            <tt class="py-comment">#Attempt to make sure this class is a singleton.</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">            <tt id="link-51" class="py-name"><a title="ProvCon.dbui.database.CFG" class="py-name" href="#" onclick="return doclink('link-51', 'CFG', 'link-33');">CFG</a></tt><tt class="py-op">.</tt><tt id="link-52" class="py-name"><a title="ProvCon.dbui.database.CFG.tCX" class="py-name" href="#" onclick="return doclink('link-52', 'tCX', 'link-36');">tCX</a></tt><tt class="py-op">.</tt><tt id="link-53" class="py-name"><a title="ProvCon.dbui.database.CFG.tCX.instanceCount" class="py-name" href="#" onclick="return doclink('link-53', 'instanceCount', 'link-31');">instanceCount</a></tt> <tt class="py-op">+=</tt> <tt class="py-number">1</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">            <tt class="py-keyword">print</tt> <tt class="py-string">"tCX init [%d]"</tt> <tt class="py-op">%</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-54" class="py-name"><a title="ProvCon.dbui.database.CFG.tCX.instanceCount" class="py-name" href="#" onclick="return doclink('link-54', 'instanceCount', 'link-31');">instanceCount</a></tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line"> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">            <tt class="py-name">idmap</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">            <tt class="py-name">tableinfo</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">query</tt> <tt class="py-op">(</tt> <tt class="py-string">"SELECT * FROM ONLY {0}.table_info"</tt><tt class="py-op">.</tt><tt class="py-name">format</tt><tt class="py-op">(</tt><tt id="link-55" class="py-name"><a title="ProvCon.dbui.database.CFG" class="py-name" href="#" onclick="return doclink('link-55', 'CFG', 'link-33');">CFG</a></tt><tt class="py-op">.</tt><tt id="link-56" class="py-name"><a title="ProvCon.dbui.database.CFG.DB" class="py-name" href="#" onclick="return doclink('link-56', 'DB', 'link-40');">DB</a></tt><tt class="py-op">.</tt><tt id="link-57" class="py-name"><a title="ProvCon.dbui.database.CFG.DB.SCHEMA" class="py-name" href="#" onclick="return doclink('link-57', 'SCHEMA', 'link-14');">SCHEMA</a></tt><tt class="py-op">)</tt> <tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">dictresult</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">ti</tt> <tt class="py-keyword">in</tt> <tt class="py-name">tableinfo</tt><tt class="py-op">:</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">                <tt class="py-keyword">with</tt> <tt id="link-58" class="py-name"><a title="ProvCon.dbui.meta.table.Table" class="py-name" href="#" onclick="return doclink('link-58', 'Table', 'link-38');">Table</a></tt><tt class="py-op">.</tt><tt id="link-59" class="py-name" targets="Class Method ProvCon.dbui.meta.table.Table.New()=ProvCon.dbui.meta.table.Table-class.html#New"><a title="ProvCon.dbui.meta.table.Table.New" class="py-name" href="#" onclick="return doclink('link-59', 'New', 'link-59');">New</a></tt> <tt class="py-op">(</tt> <tt class="py-name">ti</tt><tt class="py-op">[</tt><tt class="py-string">'name'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-name">ti</tt> <tt class="py-op">)</tt> <tt class="py-keyword">as</tt> <tt class="py-name">t</tt><tt class="py-op">:</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">                    <tt class="py-name">columninfo</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">query</tt> <tt class="py-op">(</tt> <tt class="py-string">"SELECT * FROM ONLY {0}.field_info WHERE classid = {objectid}"</tt><tt class="py-op">.</tt><tt class="py-name">format</tt><tt class="py-op">(</tt><tt id="link-60" class="py-name"><a title="ProvCon.dbui.database.CFG" class="py-name" href="#" onclick="return doclink('link-60', 'CFG', 'link-33');">CFG</a></tt><tt class="py-op">.</tt><tt id="link-61" class="py-name"><a title="ProvCon.dbui.database.CFG.DB" class="py-name" href="#" onclick="return doclink('link-61', 'DB', 'link-40');">DB</a></tt><tt class="py-op">.</tt><tt id="link-62" class="py-name"><a title="ProvCon.dbui.database.CFG.DB.SCHEMA" class="py-name" href="#" onclick="return doclink('link-62', 'SCHEMA', 'link-14');">SCHEMA</a></tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-name">ti</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">dictresult</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">                    <tt class="py-keyword">for</tt> <tt class="py-name">ci</tt> <tt class="py-keyword">in</tt> <tt class="py-name">columninfo</tt><tt class="py-op">:</tt>                         </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">                        <tt class="py-name">t</tt><tt class="py-op">.</tt><tt id="link-63" class="py-name" targets="Method ProvCon.dbui.meta.table.Table.addField()=ProvCon.dbui.meta.table.Table-class.html#addField"><a title="ProvCon.dbui.meta.table.Table.addField" class="py-name" href="#" onclick="return doclink('link-63', 'addField', 'link-63');">addField</a></tt> <tt class="py-op">(</tt> <tt id="link-64" class="py-name"><a title="ProvCon.dbui.meta.field.Field" class="py-name" href="#" onclick="return doclink('link-64', 'Field', 'link-39');">Field</a></tt> <tt class="py-op">(</tt><tt class="py-name">size</tt><tt class="py-op">=</tt><tt class="py-name">ci</tt><tt class="py-op">[</tt><tt class="py-string">'length'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-name">ci</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">                    <tt class="py-name">idmap</tt><tt class="py-op">[</tt><tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">objectid</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">t</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">                    <tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">recordlisttoolbox</tt> <tt class="py-op">=</tt> <tt id="link-65" class="py-name" targets="Function ProvCon.dbui.database.text_to_array()=ProvCon.dbui.database-module.html#text_to_array"><a title="ProvCon.dbui.database.text_to_array" class="py-name" href="#" onclick="return doclink('link-65', 'text_to_array', 'link-65');">text_to_array</a></tt> <tt class="py-op">(</tt> <tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">recordlisttoolbox</tt><tt class="py-op">,</tt> <tt class="py-number">0</tt> <tt class="py-op">)</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">                    <tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">recordlistpopup</tt> <tt class="py-op">=</tt> <tt id="link-66" class="py-name"><a title="ProvCon.dbui.database.text_to_array" class="py-name" href="#" onclick="return doclink('link-66', 'text_to_array', 'link-65');">text_to_array</a></tt> <tt class="py-op">(</tt> <tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">recordlistpopup</tt><tt class="py-op">,</tt> <tt class="py-number">0</tt> <tt class="py-op">)</tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line"> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">            <tt class="py-comment">#import foreign key relationships</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">t</tt> <tt class="py-keyword">in</tt> <tt id="link-67" class="py-name"><a title="ProvCon.dbui.meta.table.Table" class="py-name" href="#" onclick="return doclink('link-67', 'Table', 'link-38');">Table</a></tt><tt class="py-op">.</tt><tt id="link-68" class="py-name" targets="Variable ProvCon.dbui.meta.table.Table.__all_tables__=ProvCon.dbui.meta.table.Table-class.html#__all_tables__"><a title="ProvCon.dbui.meta.table.Table.__all_tables__" class="py-name" href="#" onclick="return doclink('link-68', '__all_tables__', 'link-68');">__all_tables__</a></tt><tt class="py-op">.</tt><tt class="py-name">values</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">superclass</tt><tt class="py-op">:</tt> <tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">superclass</tt> <tt class="py-op">=</tt> <tt class="py-name">idmap</tt><tt class="py-op">[</tt><tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">superclass</tt><tt class="py-op">]</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line"> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">superclass</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt class="py-name">f</tt> <tt class="py-keyword">in</tt> <tt class="py-name">t</tt><tt class="py-op">.</tt><tt id="link-69" class="py-name" targets="Module ProvCon.dbui.abstractui.fields=ProvCon.dbui.abstractui.fields-module.html,Module ProvCon.dbui.wxwin.fields=ProvCon.dbui.wxwin.fields-module.html"><a title="ProvCon.dbui.abstractui.fields
ProvCon.dbui.wxwin.fields" class="py-name" href="#" onclick="return doclink('link-69', 'fields', 'link-69');">fields</a></tt><tt class="py-op">:</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">                    <tt class="py-comment">#For columns that reference a table_info row, replace the appropriate</tt> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">                    <tt class="py-comment">#values with actual, python-object references</tt> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">f</tt><tt class="py-op">.</tt><tt class="py-name">reference</tt><tt class="py-op">:</tt>  </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">                        <tt class="py-name">f</tt><tt class="py-op">.</tt><tt class="py-name">reference</tt> <tt class="py-op">=</tt> <tt class="py-name">idmap</tt><tt class="py-op">[</tt><tt class="py-name">f</tt><tt class="py-op">.</tt><tt class="py-name">reference</tt><tt class="py-op">]</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">                        <tt class="py-comment">#fill the table's children list</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">                        <tt class="py-name">idmap</tt><tt class="py-op">[</tt><tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">objectid</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">reference_child</tt><tt class="py-op">.</tt><tt id="link-70" class="py-name" targets="Method ProvCon.docsis.compiler.encoder.tlv_multipart.append()=ProvCon.docsis.compiler.encoder.tlv_multipart-class.html#append"><a title="ProvCon.docsis.compiler.encoder.tlv_multipart.append" class="py-name" href="#" onclick="return doclink('link-70', 'append', 'link-70');">append</a></tt> <tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">t</tt><tt class="py-op">,</tt> <tt class="py-name">f</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">                        <tt class="py-name">idmap</tt><tt class="py-op">[</tt><tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">objectid</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">reference_child_hash</tt><tt class="py-op">[</tt><tt class="py-op">(</tt><tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">name</tt><tt class="py-op">,</tt> <tt class="py-name">f</tt><tt class="py-op">.</tt><tt class="py-name">name</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-name">t</tt><tt class="py-op">,</tt><tt class="py-name">f</tt><tt class="py-op">)</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">f</tt><tt class="py-op">.</tt><tt class="py-name">arrayof</tt><tt class="py-op">:</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">                        <tt class="py-name">f</tt><tt class="py-op">.</tt><tt class="py-name">arrayof</tt> <tt class="py-op">=</tt> <tt class="py-name">idmap</tt><tt class="py-op">[</tt><tt class="py-name">f</tt><tt class="py-op">.</tt><tt class="py-name">arrayof</tt><tt class="py-op">]</tt>                 </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-71" class="py-name"><a title="ProvCon.dbui.database.CFG.tCX.instance" class="py-name" href="#" onclick="return doclink('link-71', 'instance', 'link-32');">instance</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt> </tt>
</div><a name="CFG.tCX.delete"></a><div id="CFG.tCX.delete-def"><a name="L90"></a><tt class="py-lineno"> 90</tt> <a class="py-toggle" href="#" id="CFG.tCX.delete-toggle" onclick="return toggle('CFG.tCX.delete');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="ProvCon.dbui.database.CFG.tCX-class.html#delete">delete</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">cl</tt><tt class="py-op">,</tt> <tt class="py-param">a</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="CFG.tCX.delete-collapsed" style="display:none;" pad="+++" indent="++++++++++++++++"></div><div id="CFG.tCX.delete-expanded"><a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">            <tt class="py-docstring">"""Delete an existing row in a database table.</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line"><tt class="py-docstring">            This method deletes the row from a table.</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line"><tt class="py-docstring">            It deletes based on the objectid        </tt> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line"><tt class="py-docstring">            """</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">            <tt class="py-name">qcl</tt> <tt class="py-op">=</tt> <tt class="py-name">pg</tt><tt class="py-op">.</tt><tt class="py-name">_join_parts</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_split_schema</tt><tt class="py-op">(</tt><tt class="py-name">cl</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-comment"># build qualified name     </tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">             </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">            <tt class="py-name">q</tt> <tt class="py-op">=</tt> <tt class="py-string">'DELETE FROM %s WHERE objectid=%s'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">qcl</tt><tt class="py-op">,</tt> <tt class="py-name">a</tt><tt class="py-op">[</tt><tt class="py-string">'objectid'</tt><tt class="py-op">]</tt> <tt class="py-op">)</tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_do_debug</tt><tt class="py-op">(</tt><tt class="py-name">q</tt><tt class="py-op">)</tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">db</tt><tt class="py-op">.</tt><tt class="py-name">query</tt><tt class="py-op">(</tt><tt class="py-name">q</tt><tt class="py-op">)</tt> </tt>
</div><a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line"> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">        <tt id="link-72" class="py-name"><a title="ProvCon.dbui.database.CFG.tCX.CX" class="py-name" href="#" onclick="return doclink('link-72', 'CX', 'link-34');">CX</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div></div><a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line"> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line"><tt id="link-73" class="py-name" targets="Function ProvCon.dbui.database.RaiseDBException()=ProvCon.dbui.database-module.html#RaiseDBException"><a title="ProvCon.dbui.database.RaiseDBException" class="py-name" href="#" onclick="return doclink('link-73', 'RaiseDBException', 'link-73');">RaiseDBException</a></tt> <tt class="py-op">=</tt> <tt class="py-keyword">lambda</tt> <tt class="py-op">*</tt><tt class="py-name">a</tt><tt class="py-op">:</tt> <tt class="py-name">a</tt> </tt>
<a name="array_as_text"></a><div id="array_as_text-def"><a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line"> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt> <a class="py-toggle" href="#" id="array_as_text-toggle" onclick="return toggle('array_as_text');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="ProvCon.dbui.database-module.html#array_as_text">array_as_text</a><tt class="py-op">(</tt><tt class="py-param">arr</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="array_as_text-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="array_as_text-expanded"><a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">    <tt class="py-docstring">"""</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line"><tt class="py-docstring">    Convert a python list to a text representation of a postgres array.</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line"><tt class="py-docstring">    @type arr: list</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line"><tt class="py-docstring">    @param arr: the python list to be converted</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line"><tt class="py-docstring">    @rtype: string</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line"><tt class="py-docstring">    @return: postgres array</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">arr</tt><tt class="py-op">,</tt> <tt class="py-name">list</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">"{"</tt> <tt class="py-op">+</tt> <tt class="py-string">","</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">map</tt><tt class="py-op">(</tt><tt id="link-74" class="py-name" targets="Function ProvCon.dbui.database.array_as_text()=ProvCon.dbui.database-module.html#array_as_text"><a title="ProvCon.dbui.database.array_as_text" class="py-name" href="#" onclick="return doclink('link-74', 'array_as_text', 'link-74');">array_as_text</a></tt><tt class="py-op">,</tt> <tt class="py-name">arr</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">"}"</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">arr</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-string">''</tt> </tt>
<a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">arr</tt><tt class="py-op">)</tt> </tt>
</div><a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line"> </tt>
<a name="text_to_array"></a><div id="text_to_array-def"><a name="L123"></a><tt class="py-lineno">123</tt> <a class="py-toggle" href="#" id="text_to_array-toggle" onclick="return toggle('text_to_array');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="ProvCon.dbui.database-module.html#text_to_array">text_to_array</a><tt class="py-op">(</tt><tt class="py-param">text</tt><tt class="py-op">,</tt> <tt class="py-param">depth</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="text_to_array-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="text_to_array-expanded"><a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">    <tt class="py-docstring">"""</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line"><tt class="py-docstring">    Parse a text representation of a postgres array into a python list.</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line"><tt class="py-docstring">    @type text: str</tt> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line"><tt class="py-docstring">    @param text: the postgres array </tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line"><tt class="py-docstring">    @type depth: int</tt> </tt>
<a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line"><tt class="py-docstring">    @param depth: depth of the array</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line"><tt class="py-docstring">    @rtype: list    </tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">    <tt class="py-keyword">def</tt> <tt class="py-def-name">inside_array</tt><tt class="py-op">(</tt><tt class="py-param">t</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">        <tt class="py-name">bracestate</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">        <tt class="py-name">content</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">        <tt class="py-name">curitem</tt> <tt class="py-op">=</tt> <tt class="py-string">''</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">        <tt id="link-75" class="py-name" targets="Method ProvCon.dbui.API.INavigator.prev()=ProvCon.dbui.API.INavigator-class.html#prev,Method ProvCon.dbui.abstractui.navigators.BaseNavigator.prev()=ProvCon.dbui.abstractui.navigators.BaseNavigator-class.html#prev"><a title="ProvCon.dbui.API.INavigator.prev
ProvCon.dbui.abstractui.navigators.BaseNavigator.prev" class="py-name" href="#" onclick="return doclink('link-75', 'prev', 'link-75');">prev</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">char</tt> <tt class="py-keyword">in</tt> <tt class="py-name">t</tt><tt class="py-op">:</tt> </tt>
<a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">            <tt class="py-name">escaped</tt> <tt class="py-op">=</tt> <tt id="link-76" class="py-name"><a title="ProvCon.dbui.API.INavigator.prev
ProvCon.dbui.abstractui.navigators.BaseNavigator.prev" class="py-name" href="#" onclick="return doclink('link-76', 'prev', 'link-75');">prev</a></tt> <tt class="py-op">==</tt> <tt class="py-string">'\\'</tt> </tt>
<a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">char</tt> <tt class="py-op">==</tt> <tt class="py-string">'}'</tt> <tt class="py-keyword">and</tt> <tt class="py-keyword">not</tt> <tt class="py-name">escaped</tt><tt class="py-op">:</tt> <tt class="py-name">bracestate</tt> <tt class="py-op">-=</tt> <tt class="py-number">1</tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">char</tt> <tt class="py-op">==</tt> <tt class="py-string">'{'</tt> <tt class="py-keyword">and</tt> <tt class="py-keyword">not</tt> <tt class="py-name">escaped</tt><tt class="py-op">:</tt>  </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">                <tt class="py-name">bracestate</tt> <tt class="py-op">+=</tt> <tt class="py-number">1</tt> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">bracestate</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> <tt class="py-keyword">continue</tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line"> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">bracestate</tt> <tt class="py-op">==</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt>                 </tt>
<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">curitem</tt><tt class="py-op">.</tt><tt class="py-name">startswith</tt><tt class="py-op">(</tt><tt class="py-string">'"'</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">curitem</tt><tt class="py-op">.</tt><tt class="py-name">endswith</tt><tt class="py-op">(</tt><tt class="py-string">'"'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">                    <tt class="py-name">curitem</tt> <tt class="py-op">=</tt> <tt class="py-name">curitem</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">:</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line"> </tt>
<a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line">                <tt class="py-name">content</tt><tt class="py-op">.</tt><tt id="link-77" class="py-name"><a title="ProvCon.docsis.compiler.encoder.tlv_multipart.append" class="py-name" href="#" onclick="return doclink('link-77', 'append', 'link-70');">append</a></tt> <tt class="py-op">(</tt> <tt class="py-name">curitem</tt> <tt class="py-op">)</tt> </tt>
<a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">content</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt> <tt class="py-keyword">and</tt> <tt class="py-name">curitem</tt> <tt class="py-op">==</tt> <tt class="py-string">''</tt><tt class="py-op">:</tt> </tt>
<a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line">                    <tt class="py-keyword">yield</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt>                 </tt>
<a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">                    <tt class="py-keyword">yield</tt> <tt class="py-name">content</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line">                <tt class="py-name">curitem</tt> <tt class="py-op">=</tt> <tt class="py-string">''</tt> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line">                <tt class="py-name">content</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt>       </tt>
<a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line">                <tt class="py-keyword">continue</tt> </tt>
<a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line"> </tt>
<a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">char</tt> <tt class="py-op">==</tt> <tt class="py-string">','</tt> <tt class="py-keyword">and</tt> <tt id="link-78" class="py-name"><a title="ProvCon.dbui.API.INavigator.prev
ProvCon.dbui.abstractui.navigators.BaseNavigator.prev" class="py-name" href="#" onclick="return doclink('link-78', 'prev', 'link-75');">prev</a></tt> <tt class="py-op">!=</tt> <tt class="py-string">'\\'</tt> <tt class="py-keyword">and</tt> <tt class="py-name">bracestate</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt>                 </tt>
<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">curitem</tt><tt class="py-op">.</tt><tt class="py-name">startswith</tt><tt class="py-op">(</tt><tt class="py-string">'"'</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">curitem</tt><tt class="py-op">.</tt><tt class="py-name">endswith</tt><tt class="py-op">(</tt><tt class="py-string">'"'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line">                    <tt class="py-name">curitem</tt> <tt class="py-op">=</tt> <tt class="py-name">curitem</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">:</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line">                <tt class="py-name">content</tt><tt class="py-op">.</tt><tt id="link-79" class="py-name"><a title="ProvCon.docsis.compiler.encoder.tlv_multipart.append" class="py-name" href="#" onclick="return doclink('link-79', 'append', 'link-70');">append</a></tt> <tt class="py-op">(</tt> <tt class="py-name">curitem</tt> <tt class="py-op">)</tt> </tt>
<a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line">                <tt class="py-name">curitem</tt> <tt class="py-op">=</tt> <tt class="py-string">''</tt> </tt>
<a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line">                <tt class="py-keyword">continue</tt> </tt>
<a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line"> </tt>
<a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">bracestate</tt> <tt class="py-op">&gt;=</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt>  </tt>
<a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line">                <tt class="py-comment">#if char != '\\' or escaped:</tt> </tt>
<a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line">                <tt class="py-name">curitem</tt> <tt class="py-op">+=</tt> <tt class="py-name">char</tt>             </tt>
<a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line"> </tt>
<a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line">            <tt id="link-80" class="py-name"><a title="ProvCon.dbui.API.INavigator.prev
ProvCon.dbui.abstractui.navigators.BaseNavigator.prev" class="py-name" href="#" onclick="return doclink('link-80', 'prev', 'link-75');">prev</a></tt> <tt class="py-op">=</tt> <tt class="py-name">char</tt> </tt>
</div><a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">text</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt> <tt class="py-keyword">or</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">text</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line">    <tt class="py-name">arr</tt> <tt class="py-op">=</tt> <tt class="py-name">list</tt><tt class="py-op">(</tt><tt class="py-name">inside_array</tt><tt class="py-op">(</tt><tt class="py-name">text</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt>  </tt>
<a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">depth</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">map</tt><tt class="py-op">(</tt> <tt class="py-keyword">lambda</tt> <tt class="py-name">x</tt><tt class="py-op">:</tt> <tt id="link-81" class="py-name"><a title="ProvCon.dbui.database.text_to_array" class="py-name" href="#" onclick="return doclink('link-81', 'text_to_array', 'link-65');">text_to_array</a></tt><tt class="py-op">(</tt><tt class="py-name">x</tt><tt class="py-op">,</tt> <tt class="py-name">depth</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">arr</tt> <tt class="py-op">)</tt> </tt>
<a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">arr</tt> </tt>
</div><a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line"> </tt>
<a name="StartupDatabaseConnection"></a><div id="StartupDatabaseConnection-def"><a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line"> </tt>
<a name="L177"></a><tt class="py-lineno">177</tt> <a class="py-toggle" href="#" id="StartupDatabaseConnection-toggle" onclick="return toggle('StartupDatabaseConnection');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="ProvCon.dbui.database-module.html#StartupDatabaseConnection">StartupDatabaseConnection</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>     </tt>
</div><a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line">    <tt class="py-docstring">"""</tt> </tt>
<a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line"><tt class="py-docstring">    Read configuration files, and connect to the database backend.</tt> </tt>
<a name="L180"></a><tt class="py-lineno">180</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line">    <tt id="link-82" class="py-name"><a title="ProvCon.dbui.database.CFG" class="py-name" href="#" onclick="return doclink('link-82', 'CFG', 'link-33');">CFG</a></tt><tt class="py-op">.</tt><tt id="link-83" class="py-name"><a title="ProvCon.dbui.database.CFG.DB" class="py-name" href="#" onclick="return doclink('link-83', 'DB', 'link-40');">DB</a></tt><tt class="py-op">.</tt><tt id="link-84" class="py-name" targets="Class Method ProvCon.dbui.database.CFG.DB.initialize()=ProvCon.dbui.database.CFG.DB-class.html#initialize,Class Method ProvCon.dbui.database.CFG.RT.initialize()=ProvCon.dbui.database.CFG.RT-class.html#initialize"><a title="ProvCon.dbui.database.CFG.DB.initialize
ProvCon.dbui.database.CFG.RT.initialize" class="py-name" href="#" onclick="return doclink('link-84', 'initialize', 'link-84');">initialize</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L182"></a><tt class="py-lineno">182</tt>  <tt class="py-line">    <tt id="link-85" class="py-name"><a title="ProvCon.dbui.database.CFG" class="py-name" href="#" onclick="return doclink('link-85', 'CFG', 'link-33');">CFG</a></tt><tt class="py-op">.</tt><tt id="link-86" class="py-name" targets="Class ProvCon.dbui.database.CFG.RT=ProvCon.dbui.database.CFG.RT-class.html"><a title="ProvCon.dbui.database.CFG.RT" class="py-name" href="#" onclick="return doclink('link-86', 'RT', 'link-86');">RT</a></tt><tt class="py-op">.</tt><tt id="link-87" class="py-name"><a title="ProvCon.dbui.database.CFG.DB.initialize
ProvCon.dbui.database.CFG.RT.initialize" class="py-name" href="#" onclick="return doclink('link-87', 'initialize', 'link-84');">initialize</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line">    <tt id="link-88" class="py-name"><a title="ProvCon.dbui.database.CFG" class="py-name" href="#" onclick="return doclink('link-88', 'CFG', 'link-33');">CFG</a></tt><tt class="py-op">.</tt><tt id="link-89" class="py-name"><a title="ProvCon.dbui.database.CFG.tCX.CX" class="py-name" href="#" onclick="return doclink('link-89', 'CX', 'link-34');">CX</a></tt> <tt class="py-op">=</tt> <tt id="link-90" class="py-name"><a title="ProvCon.dbui.database.CFG" class="py-name" href="#" onclick="return doclink('link-90', 'CFG', 'link-33');">CFG</a></tt><tt class="py-op">.</tt><tt id="link-91" class="py-name"><a title="ProvCon.dbui.database.CFG.tCX" class="py-name" href="#" onclick="return doclink('link-91', 'tCX', 'link-36');">tCX</a></tt><tt class="py-op">.</tt><tt id="link-92" class="py-name"><a title="ProvCon.dbui.database.CFG.tCX.instance" class="py-name" href="#" onclick="return doclink('link-92', 'instance', 'link-32');">instance</a></tt> <tt class="py-keyword">or</tt> <tt id="link-93" class="py-name"><a title="ProvCon.dbui.database.CFG" class="py-name" href="#" onclick="return doclink('link-93', 'CFG', 'link-33');">CFG</a></tt><tt class="py-op">.</tt><tt id="link-94" class="py-name"><a title="ProvCon.dbui.database.CFG.tCX" class="py-name" href="#" onclick="return doclink('link-94', 'tCX', 'link-36');">tCX</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line">    <tt id="link-95" class="py-name"><a title="ProvCon.dbui.database.CFG" class="py-name" href="#" onclick="return doclink('link-95', 'CFG', 'link-33');">CFG</a></tt><tt class="py-op">.</tt><tt id="link-96" class="py-name"><a title="ProvCon.dbui.database.CFG.tCX.CX" class="py-name" href="#" onclick="return doclink('link-96', 'CX', 'link-34');">CX</a></tt><tt class="py-op">.</tt><tt class="py-name">debug</tt> <tt class="py-op">=</tt> <tt class="py-string">"===== [SQL] =====\n%s\n================="</tt> </tt>
</div><a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line">     </tt>
<a name="L186"></a><tt class="py-lineno">186</tt>  <tt class="py-line"><tt class="py-name">Init</tt> <tt class="py-op">=</tt> <tt id="link-97" class="py-name" targets="Function ProvCon.dbui.database.StartupDatabaseConnection()=ProvCon.dbui.database-module.html#StartupDatabaseConnection"><a title="ProvCon.dbui.database.StartupDatabaseConnection" class="py-name" href="#" onclick="return doclink('link-97', 'StartupDatabaseConnection', 'link-97');">StartupDatabaseConnection</a></tt> </tt>
<a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="ProvCon-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >docsis-provisioning</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Tue Jan 13 12:48:46 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
